﻿@model IEnumerable<WebUI.Models.QizItem>
@using (Ajax.BeginForm(new AjaxOptions()
{
    LoadingElementId="OnLoadingSpan",UpdateTargetId = "SftMingXiView",
    InsertionMode = System.Web.Mvc.Ajax.InsertionMode.Replace,
    HttpMethod = "Post",
    OnSuccess = "$('#dialogbox').dialog('close');",
    OnFailure = "OnSiteError"
}))
{
    @Html.Hidden("ID")
    <ul class="stacklist size200x96">
        @foreach (var item in Model.OrderBy(v => v.CatalogID))
        {
            <li>
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <label  for='Selection_@(item.QizItemID)'>@item.Title</label>
                            <input name="Selection" type="checkbox" value='@item.QizItemID' id='Selection_@(item.QizItemID)'  />
                        </td>
                    </tr>
                </table>
            </li>
        }
    </ul>
    <p>
        <input class="ui-button" type="submit" value="保存" />
    </p>
    
}